'''
Created on 01.12.2009

@author: stud
'''


from Tkinter import *

global entry
global lichtStatus
global lichtLabel

def ok():
    global entry
    print entry.get()

def ende():
    root.destroy()    

if __name__ == '__main__':
    root = Tk()
    root.title('Mehrkoerpersystem')
    
       
   
    entryFrame = Frame(root)
    ipEntry = Entry(entryFrame)
    ipEntry.pack(side = TOP)
    
    portEntry = Entry(entryFrame)
    portEntry.pack(side = TOP)
    
    massminEntry = Entry(entryFrame)
    massminEntry.pack(side = TOP)
    
    massmaxEntry = Entry(entryFrame)
    massmaxEntry.pack(side = TOP)
    
    radiminEntry = Entry(entryFrame)
    radiminEntry.pack(side = TOP)
    
    radimaxEntry = Entry(entryFrame)
    radimaxEntry.pack(side = TOP)
    
    xEntry = Entry(entryFrame)
    xEntry.pack(side = TOP)
    
    yEntry = Entry(entryFrame)
    yEntry.pack(side = TOP)
    
    zEntry = Entry(entryFrame)
    zEntry.pack(side = TOP)
    
    centralStarMassEntry = Entry(entryFrame)
    centralStarMassEntry.pack(side = TOP)
    
   
    
    entryFrame.pack(side = RIGHT)
    
    labelFrame = Frame(root)
    ipLabel = Label(labelFrame, text="IP:")
    ipLabel.pack(side=TOP, ipady = 1)
    
    portLabel = Label(labelFrame, text="Port:")
    portLabel.pack(side= TOP, ipady = 1)
    
    minmassLabel = Label(labelFrame, text = "Min_Mass:")
    minmassLabel.pack(side= TOP, ipady = 1)
    
    maxmassLabel = Label(labelFrame, text = "Max_Mass:")
    maxmassLabel.pack(side= TOP, ipady = 1)
    
    radiminLabel = Label(labelFrame, text = "Min_Radius:")
    radiminLabel.pack(side= TOP, ipady = 1)
    
    radimaxLabel = Label(labelFrame, text = "Max_Radius:")
    radimaxLabel.pack(side= TOP, ipady = 1)
    
    xLabel = Label(labelFrame, text = "Ausdehnung_x:")
    xLabel.pack(side= TOP, ipady = 1)
    
    yLabel = Label(labelFrame, text = "Ausdehnung_y:")
    yLabel.pack(side= TOP, ipady = 1)
    
    zLabel = Label(labelFrame, text = "Ausdehnung_z:")
    zLabel.pack(side= TOP, ipady = 1)
    
    CentralStarLabel = Label(labelFrame, text = "Masse_Zentralgestirn:")
    CentralStarLabel.pack(side= TOP, ipady = 1)
    
    
    labelFrame.pack(side = RIGHT, expand = False)
    
    exitButton = Button(root,text='EXIT', command= ende)
    exitButton.pack(side = BOTTOM, fill=X)
    okButton = Button(root, text='Ok', command= ok)
    okButton.pack(side= BOTTOM, fill=X)
    
        
    
    lichtStatus=False
    vtkFrame = Frame(root)
    lichtLabel = Label(vtkFrame, bg='black')
    lichtLabel.pack(side=TOP, fill=BOTH, expand=True)
    vtkFrame.pack(side=LEFT, fill=BOTH, expand=True, ipadx = 100, ipady = 100)

    root.mainloop()